export interface RewardRuleModel {
  Limit?: number
  DiscountPrice?: number
  FreeDelivery?: boolean
  Point: number
  GiveCouponTemplateCounts?: {
    [key: number]: number
  }
}


export interface RewardActivityModel {
  Id?: number
  Name?: string
  StartTime?: Date
  EndTime?: Date
  StartAndEndTime?: Date[] // 只前端使用
  Remark?: string
  ConditionType?: number
  ProductScope?: number
  Rules: RewardRuleModel[]
  // 如下仅用于表单，不提交
  ProductScopeValues?: number[] // 商品范围：值为品类编号列表、商品编号列表
  ProductCategoryIds?: number[]
  ProductSpuIds?: number[]
}